package com.bargate.domain.spring.expression.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.StandardEnvironment;

/**
 * Created with IntelliJ IDEA.
 * User: EAD-MASTER
 * Date: 5/18/13
 * Time: 1:52 AM
 * To change this template use File | Settings | File Templates.
 */
@Learning
@Configuration
public class ConfigurationEnvConverters {


	@Bean
	ConfigurableEnvironment environment(){
		StandardEnvironment standardEnvironment = new StandardEnvironment();
//		standardEnvironment.getConversionService().addConverter();
		return standardEnvironment;
	}


/*	@Bean CustomEditorConfigurer getCustomArrayConfigurer() {
		CustomCollectionEditor arrayConverter = new CustomCollectionEditor(ArrayList.class);
		arrayConverter.
	}

	@Bean
	CustomNumberEditor getCustomBooleanToDoubleConfigurer() {
		CustomNumberEditor customNumberEditor = new CustomNumberEditor(Double.class, true);
		if()
		customNumberEditor.getValue();
		CustomBooleanEditor customBooleanEditor = new CustomBooleanEditor(true);
		customBooleanEditor
	}


	@Bean
	CustomCollectionEditor getCollectionEditor() {

		CustomEditorConfigurer editorConfigurer=new CustomEditorConfigurer();
		new HashMap('java.util.ArrayList',)
//		editorConfigurer.setCustomEditors();

	}*/
}
